<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="icon" type="text/css" href="icon.ico"/>
    <link rel="stylesheet" type="text/css" href="/shop/Public/Home/css/index.css" />
    <script src="/shop/Public/Home/js/jquery-1.10.1.min.js" type="text/javascript" charset="utf-8"></script>

    <script src="/shop/Public/Home/js/list.js" type="text/javascript" charset="utf-8"></script>
    <!--<script src="/shop/node_modules/hdjs/app/util.js"></script>-->
    <!--<script src="/shop/node_modules/hdjs/require.js"></script>-->
    <!--<script src="/shop/node_modules/hdjs/config.js"></script>-->
    <script src="/shop/Public/Home/js/layer.js"></script>

</head>

<body>
<!--头部开始-->
<div id="top">
    <!--头部灰条就开始-->
    <div class="topbox">
        <div class="main">
            <div class="topleft fl">
                <a href="javascript:;">欢迎来到<?php echo V("sp_system.0")['svalue'];?></a>
                <a href="#">设为首页</a>
                <a href="#">收藏本站</a>
                <!--<a href="#">帮助中心</a>-->
                <!--<a href="#" class='last'><i></i>手机商城</a>-->
            </div>
            <div class="topright fr">
                <div class="login fl">
                    <?php if(isset($_SESSION['uid'])): ?><span>欢迎您回来 <?php echo $_SESSION['uname']?><a href="<?php echo U('home/userinfo/info');?>">去个人中心</a></span>
                        <span><a href="<?php echo U('home/lg/exitlogin');?>">退出</a></span>
                        <?php else: ?>
                        <a href="<?php echo U('Home/Lg/login');?>">登录</a>
                        <a href="<?php echo U('Home/Lg/regest');?>">注册</a><?php endif; ?>
                </div>
                <span class="fl">|</span>

                <div class="fcode fl">

                    <a href="<?php echo U('home/userinfo/order');?>">我的订单</a>
                </div>
            </div>
        </div>
    </div>
    <!--头部灰条结束-->

    <!--logo区域开始-->
    <div class="logoRegion">
        <div class="main">
            <div class="logo">
                <a href="/shop/dami.html"><img width="185px" height="70px" src="<?php echo V('sp_system.3')['svalue'];?>"/></a>
            </div>
            <div class="seachRegion">
                <div class="seach fl">
                    <form action="<?php echo U('home/search/searchs');?>" method="post">
                        <input type="text" name="gname" class="seachtxt fl" value="O2+车载空气净化"/>
                        <input type="submit" class="btn" value=""/>
                    </form>
                    <p class="searchkey">
                        <?php if(is_array($hot)): $i = 0; $__LIST__ = $hot;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo U('home/goodinfo/index',['gid'=>$vo['gid']]);?>" style="display: inline-block;width: 160px;height:20px;overflow: hidden"><?php echo ($vo['gname']); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                    </p>
                </div>

                <?php if((CONTROLLER_NAME != 'Order') AND (CONTROLLER_NAME != 'Car')): ?><div class="topshopcart fr">
                        <a href="<?php echo U('home/car/lists');?>" class="header-cart"><i></i>我的购物车<span class="cart-size">(<?php echo ($cars); ?>)</span></a>
                        <div class="cart-tips" style="width: 250px;padding-bottom: 10px">
                            <?php if(isset($_SESSION['uid'])): ?><ul id="car_ul" style="background: #fff;width: 250px;padding: 0px;margin: 0px;padding-bottom: 10px">
                                </ul>
                                <?php else: ?>
                                请
                                <a href="<?php echo U('home/lg/login');?>">登录</a>后查看您的购物车。<?php endif; ?>
                        </div>
                    </div><?php endif; ?>


            </div>
            <script>
                //                购物车AJAX异步
                $('.header-cart').mouseenter(function(){
                    uid="<?php echo session('uid');?>";
                    if(uid){
                        var str='';
                        var count=0;
                        $.post("<?php echo U('home/car/finAjxgood');?>",{uid:uid}, function (res) {
                            if($.isEmptyObject(res)){
//                            alert(444);
                                $('#car_ul').html('购物车中没有一件商品，快去购物吧');return false;
                            }else {
                                console.log(res);
                                $.each(res, function (k, v) {
                                    count = count + parseInt(v.count);
                                    str += '<li style="width: 250px;padding: 0px;margin: 0px;height:50px;line-height:20px;text-align: left;border-bottom: 2px dashed orangered;padding-bottom: 15px;margin-top: 8px">';
                                    str += '<a href="" style="display:block;width: 50px;height:60px;float: left;margin-left: 5px;">';
                                    str += '<img width="50px" height="50px" src="' + v.thumb + '" alt=""></a>';
                                    str += '<a href="" style="display: block;width: 80px;height: 60px;float:left;overflow: hidden;margin-left: 15px">' + v.gname + '</a>';
                                    str += '<a style="display: block;width:90px;height: 60px;float:left;overflow: hidden;margin-left: 5px">￥' + v.priced + ' X ' + v.count + '<br/><br/><span ugid="'+v.ugid+'" class="delgood" style="padding: 4px 4px;background: orange;cursor: pointer">删除</span></a></li>';
                                })
//                        alert(str);
                                str += '<li style="line-height: 20px;padding-top: 10px;;margin: 0px"> <a href="/shop/home/car/lists" style="background: orangered;color:#fff;line-height: 20px;padding: 5px;margin: 0px">去结算</a> </li>';
                                $('.cart-size').html('(' + count + ')');
                                $('#car_ul').html(str);
                            }
                        });
                    }

                })
                //购物车删除按钮删除购物车中的物品
                $('#car_ul').on('click','.delgood',function(){
                    var ugid=$(this).attr('ugid');
                    that=$(this);
                    //异步后台删除
                    $.post("<?php echo U('home/car/ajaxdelgood');?>",{ugid:ugid},function(res){
                        if(res.valid){
                            location.reload();
                        }
                    },'json');
                });

            </script>
        </div>
    </div>
    <!--logo区域结束-->
    <div class="clear"></div>
    <!--导航开始-->
    <div class="navbox">
        <div class="main">
            <h5 class="fl"><a href="<?php echo U('Home/index/index');?>"><i></i>全部智能酷品</a></h5>
            <ul class="menu fl">
                <?php if(is_array($nature)): foreach($nature as $key=>$vo): ?><li class="menulist">
                    <a href=""><?php echo ($vo['nname']); ?></a>
                    <div class="menuHiden">
                        <ul class="product">
                            <?php if(is_array($vo['goods'])): foreach($vo['goods'] as $key=>$vo): ?><li>
                                <a href=""><img src="/shop/Public/Home/images/right.png" alt="" /></a>
                            </li><?php endforeach; endif; ?>
                        </ul>
                    </div>
                </li><?php endforeach; endif; ?>

            </ul>

        </div>

    </div>
    <!--导航结束-->
    <div class="clear"></div>

</div>
<!--头部结束-->
<!--中间开始-->

<div id="content">
    <div class="ordercontent main">
        <div class="orderleft">
            <div class="ordertitle">
                <h1>个人中心</h1>
                <ul>
                    <li><a href="<?php echo U('home/userinfo/order');?>">我的订单<span>&gt;</span></a></li>
                    <li><a href="<?php echo U('home/userinfo/info');?>">个人信息<span>&gt;</span></a></li>
                    <li><a href="<?php echo U('home/userinfo/rengood');?>">退货记录<span>&gt;</span></a></li>
                    <li><a href="<?php echo U('home/userinfo/addr');?>">管理地址<span>&gt;</span></a></li>
                    <li><a href="<?php echo U('home/userinfo/msg');?>">站内消息<span>&gt;</span></a></li>
                </ul>
            </div>
        </div>
		<div class="orderright">
			<div class="orderlist">
				<h2>我的订单</h2>
				<div class="carshop">
					<div class="cartitle">
						<div class="carcheck">
							<div class="checkbox">
								<span class="check" id="allcheck"></span>

							</div>
							全选</div>
						<div class="carname">商品名称</div>
						<div class="carmoney">单价</div>
						<div class="carnum">数量(件)</div>
						<div class="carcount">小计</div>
						<div class="carhandle">操作</div>
					</div>
					<div class="shopcontent">
						<div class="shopcheck"><div class="checkbox">
							<span class="check "></span>
							<input type="checkbox" name='checkbox' class="checkhide"/>
						</div></div>
						<div class="shopname">
							<div class="carimg">
								<a href=""><img src="images/car.jpg"/></a>
							</div>
							<p>
								<a href="#">小米手机5 全网通标准版 白色 32GB</a>
								<span>适配机型： 小米手机5</span>
							</p>
						</div>
						<div class="shopmoney">2000元</div>
						<div class="shopnum">
							2

						</div>
						<div class="shopcount">2000元</div>
						<div class="shophandle"><span>x</span></div>
					</div>
					<div class="shopcontent">
						<div class="shopcheck"><div class="checkbox">
							<span class="check "></span>
							<input type="checkbox" name='checkbox' class="checkhide"/>
						</div></div>
						<div class="shopname">
							<div class="carimg">
								<a href=""><img src="images/car.jpg"/></a>
							</div>
							<p>
								<a href="#">小米手机5 全网通标准版 白色 32GB</a>
								<span>适配机型： 小米手机5</span>
							</p>
						</div>
						<div class="shopmoney">2000元</div>
						<div class="shopnum">

							2
						</div>
						<div class="shopcount">2000元</div>
						<div class="shophandle"><span>x</span></div>
					</div>
					<div class="shopcontent">
						<div class="shopcheck"><div class="checkbox">
							<span class="check "></span>
							<input type="checkbox" class="checkhide"/>
						</div></div>
						<div class="shopname">
							<div class="carimg">
								<a href=""><img src="images/car.jpg"/></a>
							</div>
							<p>
								<a href="#">小米手机5 全网通标准版 白色 32GB</a>
								<span>适配机型： 小米手机5</span>
							</p>
						</div>
						<div class="shopmoney">2000元</div>
						<div class="shopnum">

							2
						</div>
						<div class="shopcount">2000元</div>
						<div class="shophandle"><span>x</span></div>
					</div>
					<div class="shopcontent">
						<div class="shopcheck"><div class="checkbox">
							<span class="check "></span>
							<input type="checkbox" class="checkhide"/>
						</div></div>
						<div class="shopname">
							<div class="carimg">
								<a href=""><img src="images/car.jpg"/></a>
							</div>
							<p>
								<a href="#">小米手机5 全网通标准版 白色 32GB</a>
								<span>适配机型： 小米手机5</span>
							</p>
						</div>
						<div class="shopmoney">2000元</div>
						<div class="shopnum">

							2
						</div>
						<div class="shopcount">2000元</div>
						<div class="shophandle"><span>x</span></div>
					</div>

				</div>
				<div class="jiesuan">

					<div class="gongji">共计<span>10</span>件商品</div>
					<div class="heji">合计<span>100.00</span></div>


				</div>

















			</div>
		</div>
	</div>



<!--中间结束-->
<!--尾部开始-->
<div class="mod-footer">
    <div class="foot-bannerw">
        <div class="foot-banner clearfix">
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_days7"><i class="icon1">7</i>7天无理由退货</a>
            </div>
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_days15"><i class="icon2">15</i>15天免费换货</a>
            </div>
            <div class="banner-item"><i class="icon3">包</i>满99元包邮</div>
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_moblie"><i class="icon4">服</i>手机特色服务</a>
            </div>
        </div>
    </div>
    <div class="foot-containerw">
        <div class="foot-container clearfix">
            <dl class="foot-con"> <dt data-monitor="home_foot_freshman">帮助中心 </dt>
                <dd data-monitor="home_help_freshman">
                    <a target="_blank" href="#" rel="nofollow">用户注册</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">用户登录与密码找回</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">购买指南</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">支付方式</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">配送与说明</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_help">售后服务 </dt>
                <dd data-monitor="home_help_help">
                    <a target="_blank" href="#">7 日无理由退货</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">质量问题 15 日内换货</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">保修条款</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">服务流程</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">安迷之家</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_guide">特色服务 </dt>
                <dd data-monitor="home_help_guide">
                    <a target="_blank" href="#" rel="nofollow">F码通道</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">免费试用</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">大米 生态</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">一元夺宝</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_tuiguang">推广合作 </dt>
                <dd data-monitor="home_help_try">
                    <a target="_blank" href="#" rel="nofollow">商品入驻</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">大客户采购</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_try">关注大米商城 </dt>
                <dd data-monitor="home_help_try">
                    <a target="_blank" href="#" rel="nofollow">大米商城大事记</a>
                </dd>
            </dl>

        </div>
    </div>
    <div class="footer-copyright">冰雨商城 ©2016-2018 BYCMS工作室版权所有 京ICP备000001号-43</div>
</div>
<!--尾部结束-->

<!--右边底部返回顶部-->
<div class="slidebar" id="slidebar">
    <ul>
        <li class="topback">
            <a href="javascript:;"></a>
        </li>
    </ul>
</div>
<!--右边底部返回顶部结束-->

</body>

</html>